﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"
             xmlns:local="clr-namespace:SilverlightOverview">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Button Content="Click Me" FontSize="48" Margin="20">
            <Button.Effect>
                <local:SwirlEffect x:Name="swirl"
                                   Factor="0" />
            </Button.Effect>
        </Button>
        <Slider Grid.Row="1" Minimum="0" Maximum="10" MinWidth="384" Margin="10"
                Value="{Binding ElementName=swirl,Path=Factor,Mode=TwoWay}" />
    </Grid>
</UserControl>